<h1>Listing jobs</h1>

<table>
  <tr>
    <th>User</th>
    <th>Title</th>
    <th>Content type</th>
  </tr>

<% @jobs.each do |job| %>
  <tr>
    <td><%=h job.user_id %></td>
    <td><%=h job.title %></td>
    <td><%=h job.content_type %></td>
    <td><%= link_to 'Show', job %></td>
    <td><%= link_to 'Edit', edit_job_path(job) %></td>
    <td><%= link_to 'Destroy', job, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New job', new_job_path %>